

#若空投已存在则先清空
kill @e[type=armor_stand,tag=AirDropSign]
kill @e[type=chest_minecart,tag=AirDrop]

#生成坐标
summon minecraft:armor_stand ~ ~1 ~ {Tags:[AirDropSign],Marker:1b,Invulnerable:1b,NoGravity:1b,OnGround:1b,Invisible:1,Small:1,NoBasePlate:1,Rotation:[0f]}
#将坐标落在地面
spreadplayers ~ ~ 0 1 false @e[type=armor_stand,tag=AirDropSign]

#在坐标向上40格位置生成补给箱
execute at @e[type=armor_stand,tag=AirDropSign] run summon minecraft:chest_minecart ~ ~40 ~ {Invulnerable:1b,NoGravity:1b,Tags:["AirDrop"],CustomName:'{"text":"空投","color":"gree"}',Items:[{id:"minecraft:golden_apple",Count:3b,Slot:10b,Tags:[AirDropItem]}]}

# {id:"minecraft:splash_potion",Count:1b,tag:{display:{Name:'[{"text":"空投治疗药水","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]',Lore:['{"text":"唯一：空投物品","color":"dark_blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']},Tags:[kongtou],Enchantments:[{id:"minecraft:potion",Count:1b,tag:{display:{Name:'[{"text":"空投恢复药水","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]',Lore:['{"text":"唯一：空投物品","color":"dark_blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']},Tags:[kongtou],Enchantments:[{id:"minecraft:loyalty",lvl:10}],Potion:"CBC",CustomPotionEffects:[{Id:10,Amplifier:3,Duration:80}]},Slot:14b}]

# {id:"minecraft:loyalty",lvl:10}],Potion:"CBC",CustomPotionEffects:[{Id:6,Amplifier:1,Duration:20}]},Slot:12b},{id:"minecraft:sunflower",Count:50b,tag:{display:{Name:'[{"text":"空投金币","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]',Lore:['{"text":"每秒将1个金币放入你的钱包","color":"dark_purple","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}']},Tags:["jinbi"],Enchantments:[{id:"minecraft:loyalty",lvl:10}]},Slot:16b}
#体验卡
#,{id:"minecraft:iron_ingot",Count:1b,tag:{display:{Name:"[{\"text\":\"英雄体验卡\",\"color\":\"light_purple\",\"bold\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}]",Lore:["{\"text\":\"唯一：空投物品\",\"color\":\"dark_blue\",\"bold\":false,\"italic\":false,\"underlined\":false,\"strikethrough\":false,\"obfuscated\":false}"]},Tags:[kongtou,HeroCard],Enchantments:[{id:"minecraft:loyalty",lvl:10}]},Slot:22b}